package com.dcy.command;

/**
 * @Auther: 董春雨
 * @Date: 2019/4/18 14:51
 * @Description:
 */
public class Invoker {
    //什么命令
    private Command command;

    //客户发出命令
    public void setCommand(Command command) {
        this.command = command;
    }

    //执行客户的命令
    public void action() {
        this.command.execute();
    }
}
